<?php
/* @var $this UserController */
/* @var $model User */
?>

<h1>Manage Users</h1>

<div class="search-form">
	<?php $this->renderPartial('_search',array(
		'model'=>$model,
	)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'user-grid',
	'dataProvider'=>$searchResult,
	'columns'=>array(
		array('name'=>'id','headerHtmlOptions'=>array('width'=>'32px')),
		array('name'=>'email','value'=>'CHtml::link($data->email, array("view","id"=>$data->id))','type'=>'raw'),
		// 'customer_name',
		// 'mobile',
		// 'address',
		array('name'=>'status', 'type'=>'boolean', 'headerHtmlOptions'=>array('width'=>'32px')),
		// 'referral_id',
		// 'activate_code',
		array('name'=>'create_time', 
			'type'=>'datetime', 
			'headerHtmlOptions'=>array('width'=>'80px'),
			'htmlOptions' => array('class'=>'alr'),
		),
		array('name'=>'update_time', 
			'type'=>'datetime', 
			'headerHtmlOptions'=>array('width'=>'80px'),
			'htmlOptions' => array('class'=>'alr'),
		),
		array(
			'class'=>'CButtonColumn',
			// 'template'=>''
		),
	),
)); ?>
